<h1>Configuration</h1>

<div style="margin-bottom: 10px;">
<a href="index.php?what=config&amp;do=management">Advanced Management</a>
</div>

<form method="post" action="index.php">
<input type="hidden" name="what" value="config" />
<input type="hidden" name="do" value="process" />
<input type="hidden" id="tabs_select" name="tabs_select" value="" />

	<ul id="wtabs">
		<li><a id="t_basic" href="#">Basic</a></li>
		<li><a id="t_advanced" href="#">Advanced</a></li>
		<li><a id="t_imdb" href="#">IMDB</a></li>
		<li><a id="t_invite" href="#">Invitations</a></li>
		<li><a id="t_templates" href="#">Templates</a></li>
	</ul>

	<div class="wpages" id="basic">
		<table width="100%" cellspacing="0" cellpadding="5">
			<tr>
				<td width="25%"><strong>URL</strong></td>
				<td><input type="text" name="base_url" value="{$config.base_url}"></td>
			</tr>
			<tr>
				<td><strong>Show Movie Covers/Posters?</strong></td>
				<td>{html_binary name="show_image" checked=$config.show_image}</td>
			</tr>
			<tr>
				<td><strong>Short Date Format</strong></td>
				<td><input type="text" name="date_format_short" value="{$config.date_format_short}"></td>
			</tr>
			<tr>
				<td><strong>Long Date Format</strong></td>
				<td><input type="text" name="date_format_long" value="{$config.date_format_long}"></td>
			</tr>
			<tr>
				<td colspan="2">Advanced</td>
			</tr>
			<tr>
				<td><strong>Physical Path</strong><br />No trailing slash.</td>
				<td><input type="text" name="_base_path" value="{$smarty.const._BASE_PATH}"></td>
			</tr>
		</table>
	</div>

	<div class="wpages" id="advanced">
		<table width="100%" cellspacing="0" cellpadding="5">
			<tr>
				<td width="25%"><strong>Enable Comments</strong></td>
				<td>{html_binary name="comments" checked=$config.comments}</td>
			</tr>
			<tr>
				<td><strong>Enable Ratings</strong></td>
				<td>{html_binary name="ratings" checked=$config.ratings}</td>
			</tr>
			<!--<tr>
				<td><strong>Enable Borrowing Tracking</strong></td>
				<td>{html_binary name="borrow_tracking" checked=$config.borrow_tracking}</td>
			</tr>
			<tr>
				<td colspan="2">My Collection Options</td>
			</tr>
			<tr>
				<td><strong>Allow items marked as 'borrowed' to be removed</strong></td>
				<td>{html_binary name="allow_remove_borrowed" checked=$config.allow_remove_borrowed}</td>
			</tr>-->
		</table>
	</div>

	<div class="wpages" id="imdb">
		<table width="100%" cellspacing="0" cellpadding="5">
			<tr>
				<td width="25%"><strong>Cache IMDB Results?</strong></td>
				<td>{html_binary name="imdb_cache" checked=$config.imdb_cache}</td>
			</tr>
			<tr>
				<td><strong>Keep local copy of movie covers/posters?</strong></td>
				<td>{html_binary name="save_image" checked=$config.save_image}</td>
			</tr>
			<tr>
				<td><strong>Number of actors to store per movie</strong></td>
				<td><input type="text" name="imdb_num_actors" value="{$config.imdb_num_actors}" size="2" maxlength="2">
			</tr>
			<tr>
				<td colspan="2">Directories</td>
			</tr>
			<tr>
				<td><strong>Cache Directory</strong></td>
				<td><input type="text" name="directory_imdb_cache" value="{$config.directory_imdb_cache}"></td>
			</tr>
			<tr>
				<td><strong>Cover/Poster Directory</strong></td>
				<td><input type="text" name="directory_imdb_image" value="{$config.directory_imdb_image}"></td>
			</tr>
			<tr>
				<td colspan="2">Advanced</td>
			</tr>
			<tr>
				<td><strong>Movie URL</strong></td>
				<td><input type="text" name="imdb_url" value="{$config.imdb_url}"></td>
			</tr>
			<tr>
				<td><strong>Cast URL</strong></td>
				<td><input type-"text" name="imdb_name_url" value="{$config.imdb_name_url}"></td>
			</tr>
			<tr>
				<td><strong>Genre URL</strong></td>
				<td><input type="text" name="imdb_genre_url" value="{$config.imdb_genre_url}"></td>
			</tr>
			<tr>
				<td><strong>Search URL</strong></td>
				<td><input type="text" name="imdb_search" value="{$config.imdb_search}"></td>
			</tr>
		</table>
	</div>

	<div class="wpages" id="invite">
		<table width="100%" cellspacing="0" cellpadding="5">
			<tr>
				<td width="25%"><strong>Enable Invites</strong></td>
				<td>{html_binary name="invites"}</td>
			</tr>
			<tr>
				<td><strong>Public Registration</strong><br />
				<td>{html_binary name="public_registration" checked=$config.public_registration}</td>
			</tr>
		</table>
	</div>

	<div class="wpages" id="templates">
		<table width="100%" cellspacing="0" cellpadding="5">
			<tr>
				<td width="25%"><strong>Template</strong></td>
				<td><select name="smarty_template">{html_options options=$content.templates selected=$config.smarty_template}</select></td>
			</tr>
			<tr>
				<td><strong>Show Random Movie</strong></td>
				<td>{html_binary name="show_random" checked=$config.show_random}</td>
			</tr>

		</table>
	</div>

<br />
<input type="button" value="Cancel" title="This will not save any changes made to the configuration."> <input type="submit" value="Save Changes &raquo;" title="Save all changes made to the configuration.">
</form>
<script>window.onload = start_menu;</script>